package router

import (
	beego "github.com/beego/beego/v2/server/web"
	"kong-social-api/modules/common/sms/controller"
)

type SMSRouter struct{}

/**
 * @Author kong
 * @Date 2023/10/18
 * @Description 验证码的路由
 */
func (router *SMSRouter) InitNoRouter() beego.LinkNamespace {
	// 登录命令空间
	namespace := beego.NSNamespace("/sms",
		// 发送短信路由
		beego.NSCtrlPost("/send", (*controller.SMSController).SendPhoneCode),
	)
	return namespace
}
